package com.poc.party.bo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.meta.nd.vo.Nd;
import com.meta.nd.vo.Nv;
import com.meta.nd.vo.ReturnMessage;
import com.meta.nd.vo.json.NvDeserializer;
import com.meta.nd.vo.json.NvSerializer;
import lombok.extern.slf4j.Slf4j;


@Slf4j
@JsonSerialize(using = NvSerializer.class)
@JsonDeserialize(using = NvDeserializer.class)
public class PartyNv extends Nv {
    public PartyNv(Nd nd) {
        super(nd);
    }
    public ReturnMessage<Boolean> validateCertId(){
        return new ReturnMessage<>(true,true);
    }
    @JsonIgnore
    public String getCertId() {
        return this.getRawStringByName("certId");
    }
    public void setCertId(String certId){
        this.setStringFvByName("certId",certId);
    }

    @JsonIgnore
    public String partyCode(){
        return this.getRawStringByName("partyCode");
    }
    public void setPartyCode(String partyCode){
        this.setStringFvByName("partyCode",partyCode);
    }
}
